package com.xjy.spring.thrift;

import org.apache.thrift.TException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.xjy.spring.service.LogServiceThrift;

public class Client {
	public static void main(String[] args) throws TException, InterruptedException {
		ApplicationContext ac = new ClassPathXmlApplicationContext("classpath:spring-client.xml");
		LogServiceThrift.Iface logServiceThriftClient = ac.getBean("logServiceThriftClient", LogServiceThrift.Iface.class);
		while(true) {
			System.out.println(logServiceThriftClient.get("logServiceThriftClient"));
			Thread.sleep(1000 * 10);
		}
	}
}
